package com.jzsk.variable.center.domain.dto.login;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

@Data
public class LoginReqDTO implements Serializable {

    private static final long serialVersionUID = -4531853019626224822L;

    @Length(max = 25, message = "用户名长度不能超多25个字符")
    private String loginName;

    @Length(min = 6, max = 20, message = "密码长度应该在6~20个字符之间")
    private String password;

}
